package model

import "gorm.io/gorm"

// 评论表
type Sea struct {
	gorm.Model
	UserId  int    `gorm:"type:int(11);not null;index;comment:用户id"`
	ClassId int    `gorm:"type:int(11);not null;comment:课程id"`
	SeaRead string `gorm:"type:varchar(60);not null;comment:评论内容"`
	SeassId int    `gorm:"type:int(11);not null;comment:子级评论Id"`
}

// 子级评论
type Seass struct {
	gorm.Model
	UserId   int    `gorm:"type:int(11);not null;index;comment:用户id"`
	ClassId  int    `gorm:"type:int(11);not null;comment:课程id"`
	SeaId    int    `gorm:"type:int(11);not null;comment:评论表"`
	SeasRead string `gorm:"type:varchar(60);not null;comment:子级评论内容"`
}
